package com.ssy.lingxi.platform.manage.api.feign.inner;

import com.ssy.lingxi.common.response.Wrapper;
import com.ssy.lingxi.platform.manage.api.hystrix.inner.SecretKeyControllerFallback;
import com.ssy.lingxi.platform.manage.api.model.dto.secret.CheckPasswordDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import javax.validation.Valid;

/**
 * @menu 采购需求单秘钥管理
 * @author wrc
 * @version 2.0.0
 * @date 2020/7/14
 */
@FeignClient(value = "platform-manage-service", fallback = SecretKeyControllerFallback.class)
public interface SecretKeyControllerFeign {

    /**
     * 校验秘钥是否正确
     */
    @PostMapping("/manage/secret/key/checkPassword")
    Wrapper<Boolean> checkPassword(@Valid @RequestBody CheckPasswordDTO request);
}
